package cisdi.mes.sm.rm.domain;

import java.io.Serializable;

import javax.persistence.*;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import cisdi.mes.utils.base.CustomDateSerializer;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the SM_RM_MAT_COMSUME_LOG database table.
 * 
 */
@Entity
@Table(name="SM_RM_MAT_COMSUME_LOG")
@NamedQuery(name="SmRmMatComsumeLog.findAll", query="SELECT s FROM SmRmMatComsumeLog s")
public class SmRmMatComsumeLog implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private long id;

	@Column(name="CONSUME_TYPE")
	private String consumeType;

	@Column(name="MATERIAL_DESC")
	private String materialDesc;

	@Column(name="MATERIAL_ID")
	private String materialId;

	@Column(name="MEASURE_ID")
	private String measureId;

	@Column(name="STORAGE_ID")
	private String storageId;

	@JsonSerialize(using = CustomDateSerializer.class)
    @Temporal( TemporalType.TIMESTAMP)
	@Column(name="TIME_STAMP")
	private Date timeStamp;

	private BigDecimal weight;

	public SmRmMatComsumeLog() {
	}

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getConsumeType() {
		return this.consumeType;
	}

	public void setConsumeType(String consumeType) {
		this.consumeType = consumeType;
	}

	public String getMaterialDesc() {
		return this.materialDesc;
	}

	public void setMaterialDesc(String materialDesc) {
		this.materialDesc = materialDesc;
	}

	public String getMaterialId() {
		return this.materialId;
	}

	public void setMaterialId(String materialId) {
		this.materialId = materialId;
	}

	public String getMeasureId() {
		return this.measureId;
	}

	public void setMeasureId(String measureId) {
		this.measureId = measureId;
	}

	public String getStorageId() {
		return this.storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}

	public Date getTimeStamp() {
		return this.timeStamp;
	}

	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}

	public BigDecimal getWeight() {
		return this.weight;
	}

	public void setWeight(BigDecimal weight) {
		this.weight = weight;
	}

}